-- GENERATED SPELL FOR [7th Legion Infantryman] --


function spell0_27160(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(32588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27160', 5251, 1)
end

function spell1_27160(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(16244,pUnit)
pUnit:RegisterEvent('Sorts_27160', 30264, 1)
end

function Sorts_27160(pUnit, Event)
local choix_sorts_27160 = math.random(0, 1)
if choix_sorts_27160 == 0 then
pUnit:RegisterEvent('spell0_27160', 1, 1)
end
if choix_sorts_27160 == 1 then
pUnit:RegisterEvent('spell1_27160', 1, 1)
end
end

function mob27160_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27160', math.random(1500, 3000), 1)
end

function mob27160_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27160_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27160_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27160, 1, 'mob27160_Action')
RegisterUnitEvent(27160, 2, 'mob27160_Leave')
RegisterUnitEvent(27160, 3, 'mob27160_Kill')
RegisterUnitEvent(27160, 4, 'mob27160_Die')
